<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>新增课程</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="../../../layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="../../../css/public.css" media="all" />
		<link rel="stylesheet" href="../../common/zTreeStyle.css" />
		<link rel="stylesheet" href="course-add.css" />
	</head>

	<body class="childrenBody" style="background: white;">
		<div class="topsty">
			<div style="display: inline;"><span style="font-size: 15px;"><i class="layui-icon" style="color: #1E9FFF;margin:0 10px 0 30px;">&#xe65b;</i><span id="pageTitle"></span></span></div>
			<div class="backtit" style="top: -5px;">
				<div class="back_san"></div>
				<a href="../course-list/course-list.html" class="layui-btn layui-btn-normal addNews_btn">返回列表页</a>
			</div>
		</div>
		<form class="layui-form">
			<table class="layui-table " lay-skin="nob" style="background: white;">
				<colgroup>
					<col width="15%">
					<col width="33%">
					<col width="51%">
				</colgroup>
				<tbody>
					<tr>
						<td>
							<div class="layui-input-inline ftdl">
								<label class="fowei">课程名称</label>
							</div>
						</td>
						<td>
							<input type="text" class="layui-input" id="name" placeholder="输入课程名称" />
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							<div class="layui-input-inline ftdl">
								<label class="fowei">上传课程资料</label>
							</div>
						</td>
						<td>
							<div class="layui-upload">
								<button type="button" class="layui-btn layui-btn-normal" id="courseData">选择文件</button>
							</div>
						</td>
						<td></td>
					</tr>
					<tr>
						<td></td>
						<td>
							<div id="dataDiv">
							</div>
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							<div class="layui-input-inline ftdl">
								<label class="fowei">业务分类</label>
							</div>
						</td>
						<td>
							<script id="postType" type="text/html">
								<div class="layui-select-title" id="postInput">
									<input type="hidden" id="postTypeId" />
									<input class="layui-input layui-unselect" type="text" id="postTypeName" readonly="readonly" placeholder="请选择">
									<i class="layui-edge"></i>
								</div>
								<dl class="layui-anim layui-anim-upbit" id="postSelect">
									<dd lay-value="" class="layui-select-tips">请选择</dd>
									{{#  layui.each(d, function(index, item){ }}
									    <dd class="postType" id="postType{{item.id}}" onclick="choosePostType('{{item.id}}', '{{item.name}}')">{{item.name}}</dd>
									{{#  }); }}
								</dl>
							</script>
							<div class="layui-unselect layui-form-select" id="postTypeView">
							</div>
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							<div class="layui-input-inline ftdl">
								<label class="fowei">课程分类</label>
							</div>
						</td>
						<td>
							<script id="courseType" type="text/html">
								<div class="layui-select-title" id="courseInput">
									<input type="hidden" id="courseTypeId" />
									<input class="layui-input layui-unselect" type="text" id="courseTypeName" readonly="readonly" placeholder="请选择">
									<i class="layui-edge"></i>
								</div>
								<dl class="layui-anim layui-anim-upbit" id="courseSelect">
									<dd lay-value="" class="layui-select-tips">请选择</dd>
									{{#  layui.each(d, function(index, item){ }}
									    <dd class="courseType" id="courseType{{item.id}}" onclick="chooseCourseType('{{item.id}}', '{{item.name}}')">{{item.name}}</dd>
									{{#  }); }}
								</dl>
							</script>
							<div class="layui-unselect layui-form-select" id="courseTypeView">
							</div>
						</td>
						<td></td>
					</tr>
					<tr>
						<td>
							<div class="layui-input-inline ftdl">
								<label class="fowei">封面图片</label>
							</div>
						</td>
						<td>
							<div class="layui-upload">
								<button type="button" class="layui-btn layui-btn-normal" id="cover">选择图片</button>
							</div>
						</td>
						<td></td>
					</tr>
					<tr>
						<td></td>
						<td>
							<div id="coverDiv">
							</div>
						</td>
						<td></td>
					</tr>
					<tr>
						<td></td>
						<td>
							<button type="button" style="width: 100px;font-size: 16px;margin-top: 20px;float: left;" class="layui-btn layui-btn-danger" id="submitCourse">提&nbsp;交</button>
							<button type="button" style="width: 100px;font-size: 16px;margin-top: 20px;float: left;" class="layui-btn layui-btn layui-hide" id="undoModify">撤销修改</button>
						</td>
						<td></td>
					</tr>
				</tbody>
			</table>

		</form>
		<script type="text/javascript" src="../../common/jquery.min.js"></script>
		<script type="text/javascript" src="../../common/config.js"></script>
		<script type="text/javascript" src="../../../layui/layui.js"></script>
		<script type="text/javascript" src="course-add.js"></script>
	</body>
</html>